package com.dianping.cat.home.resource.entity;

import com.dianping.cat.home.resource.BaseEntity;
import com.dianping.cat.home.resource.IVisitor;






public class Resource
  extends BaseEntity<Resource>
{
  private String m_path;
  private String m_op;
  private int m_role;

/* 18 */   public void accept(IVisitor visitor) { visitor.visitResource(this); }



  public boolean equals(Object obj) {
/* 23 */     if (obj instanceof Resource) {
/* 24 */       Resource _o = (Resource)obj;

/* 26 */       if (!equals(getPath(), _o.getPath())) {
/* 27 */         return false;
      }

/* 30 */       if (!equals(getOp(), _o.getOp())) {
/* 31 */         return false;
      }

/* 34 */       if (getRole() != _o.getRole()) {
/* 35 */         return false;
      }


/* 39 */       return true;
    }

/* 42 */     return false;
  }


/* 46 */   public String getOp() { return this.m_op; }



/* 50 */   public String getPath() { return this.m_path; }



/* 54 */   public int getRole() { return this.m_role; }



  public int hashCode() {
/* 59 */     int hash = 0;

/* 61 */     hash = hash * 31 + ((this.m_path == null) ? 0 : this.m_path.hashCode());
/* 62 */     hash = hash * 31 + ((this.m_op == null) ? 0 : this.m_op.hashCode());
/* 63 */     return hash * 31 + this.m_role;
  }




  public void mergeAttributes(Resource other) {
/* 70 */     if (other.getPath() != null) {
/* 71 */       this.m_path = other.getPath();
    }

/* 74 */     if (other.getOp() != null) {
/* 75 */       this.m_op = other.getOp();
    }

/* 78 */     this.m_role = other.getRole();
  }

  public Resource setOp(String op) {
/* 82 */     this.m_op = op;
/* 83 */     return this;
  }

  public Resource setPath(String path) {
/* 87 */     this.m_path = path;
/* 88 */     return this;
  }

  public Resource setRole(int role) {
/* 92 */     this.m_role = role;
/* 93 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/resource/entity/Resource.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */